import urllib.request

# 下载网页

# url_page='http://www.baidu.com'
#
# urllib.request.urlretrieve(url_page,'baidu.html')

#下载图片
# url_img='https://img0.baidu.com/it/u=269511810,3171740769&fm=253&fmt=auto&app=120&f=JPEG?w=800&h=500'
# urllib.request.urlretrieve(url_img,'test.jpg')

#下载视频
# url_video='https://www.bilibili.com/6ad303fc-2d40-43cf-a1f0-bb2299f24e26'
# urllib.request.urlretrieve(url_video, 'test.mp4')